#include "rightform.h"
#include "ui_rightform.h"

rightForm::rightForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::rightForm)
{
    ui->setupUi(this);
}

rightForm::~rightForm()
{
    delete ui;
}
void rightForm::setAccount(const QString &account)
{
    ui->account->setText(account);
}

void rightForm::setMessage(QPixmap & pix)
{
    ui->message->setPixmap(pix.scaled(ui->message->size()));
}

void rightForm::setPix(const QPixmap &pix)
{
    ui->headPhoto->setPixmap(pix);
}

void rightForm::setTime(const QString &time)
{
    ui->time->setText(time);
}
